package com.cszjzx.member.dao;

import java.io.IOException;
import java.sql.SQLException;
import java.util.List;
import com.cszjzx.member.po.Field;
public interface FieldDAO {
	/**
	 *  增加字段
	 * @param s
	 * @throws SQLException 
	 */
	public void add(Field s) throws SQLException;    
    
	/**
     * 提供修改字段中文名的方法
     * @param id
     * @throws SQLException 
     */
    public void update(Field field) throws SQLException;
    
    
    /**
     * 根据name删除字段 name为字段的英文名 嘿嘿
     * @param id
     * @throws SQLException 
     */
    public void delete(String name) throws SQLException;   
      
    /**
     * 查找字段
     * @return 字段list
     * @throws IOException 
     * @throws SQLException 
     * @throws ClassNotFoundException 
     */
    public List<Field> findAll() throws ClassNotFoundException, SQLException, IOException; 
    
    /**
     * 按阶段查询字段
     * @param stage
     * @return
     * @throws ClassNotFoundException
     * @throws SQLException
     * @throws IOException
     */
    public List<Field> findByStage(int stage) throws ClassNotFoundException, SQLException, IOException;
}


